package com.bs.regsystemapi.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bs.regsystemapi.entity.Duty;
import com.bs.regsystemapi.modal.vo.Duty.DutyInfo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author ning
 * @date 2023/1/27 18:03
 */
@Mapper
public interface DutyDao extends BaseMapper<Duty> {
    List<DutyInfo> getDutyList(String userDepartment);
    DutyInfo getDutyByNo(String doctorNo);

    /**
     * 根据医生编号获取排班
     * @param userNo
     * @return
     */
    List<DutyInfo> getDutyListToApp(String userNo);
}
